<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::get('/test', function () {
    $c = new TopClient;
    $c->appkey = '34896803';
    $c->secretKey = '57181896852db9cf0a64406cd08c5b4f';
    $req = new TopAuthTokenCreateRequest;
    $req->setCode("0_sBaS2fmnQO4msMNJQkkvDrb25707");

    $resp = $c->execute($req);
    dump($resp);
//    $url = " https://open.api.goofish.com/authorize?response_type=code&redirect_uri=https://www.baidu.com&client_id=34896803&sp=xianyu";
//    echo $url;

});
Route::get('/getdata', function () {
    \Illuminate\Support\Facades\Log::info($_REQUEST);
});
